<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>

<body>

    <div id="box">
        <ul>
            <li v-for="item in list">
                <span>{{item.goodName}}</span>
                <span>{{item.price}}</span>
                <span v-if="item.state===0">未付款</span>
                <span v-else-if="item.state===1">已下单</span>
                <span v-else-if="item.state===2">已发货</span>
            </li>
        </ul>
    </div>
</body>

<script>
    var vm = new Vue({
        el: "#box",
        data: {
            list: [{
                goodName: "手机1",
                price: "3000",
                state: 0
            }, {
                goodName: "手机2",
                price: "3001",
                state: 1
            }, {
                goodName: "手机3",
                price: "3003",
                state: 2
            }]
        }
    })
</script>

</html>